<?php /* Smarty version Smarty-3.0.8, created on 2015-10-15 10:47:25
         compiled from "/var/www/html/magroup/admin/tpl/check_index.html" */ ?>
<?php /*%%SmartyHeaderCode:712626213561f13bdce5609-14788783%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fd54facfe7fe459c51d2826fe8d1b15b1672bcc8' => 
    array (
      0 => '/var/www/html/magroup/admin/tpl/check_index.html',
      1 => 1444876874,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '712626213561f13bdce5609-14788783',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("tpl/header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>
<h2 class="ytadmin-h2">申请用户列表</h2>
<div>
	过滤：
	<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'check','a'=>'index','state'=>0),$_smarty_tpl);?>
" class="btn btn-info" >未处理</a>
	<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'check','a'=>'index','state'=>1),$_smarty_tpl);?>
" class="btn btn-info" >已同意</a>
	<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'check','a'=>'index','state'=>2),$_smarty_tpl);?>
" class="btn btn-info" >已拒绝</a>
	<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'check','a'=>'out'),$_smarty_tpl);?>
" class="btn btn-info pull-right" >EXCEL导出已同意用户</a>
</div>
<hr />
<table class="table table-striped">
	<tr>
		<td>操作</td>
		<td>姓名</td>
		<td>电话</td>
		<td>邮箱</td>
		<td>单位</td>
		<td>研究领域</td>
		<td>申请时间</td>
		<td>状态</td>
	</tr>
	<?php  $_smarty_tpl->tpl_vars['member_item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('member_result')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['member_item']->key => $_smarty_tpl->tpl_vars['member_item']->value){
?>
		<tr>
			<td><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'check','a'=>'edit','member_id'=>$_smarty_tpl->tpl_vars['member_item']->value['id']),$_smarty_tpl);?>
">修改</a></td>
			<td><?php echo $_smarty_tpl->tpl_vars['member_item']->value['name'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['member_item']->value['phone'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['member_item']->value['email'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['member_item']->value['unit'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['member_item']->value['intro'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['member_item']->value['add_time'];?>
</td>
			<td>
				<form class="form-inline" action="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'check','a'=>'index','member_id'=>$_smarty_tpl->tpl_vars['member_item']->value['id']),$_smarty_tpl);?>
" method="POST">
					<?php if ($_smarty_tpl->tpl_vars['member_item']->value['state']==0){?>
						<font color="red">未处理</font>
						<input type="submit" class="btn btn-info" name="check_agree" value="同意"></input>
						<input type="submit" class="btn btn-sm" name="check_disagree" value="拒绝"></input>
					<?php }?>
					<?php if ($_smarty_tpl->tpl_vars['member_item']->value['state']==1){?>
						<font color="green">已同意</font>
						<input type="submit" class="btn btn-sm" name="check_disagree" value="拒绝"></input>
					<?php }?>
					<?php if ($_smarty_tpl->tpl_vars['member_item']->value['state']==2){?>
						<font color="grey">已拒绝</font>
						<input type="submit" class="btn btn-info" name="check_agree" value="同意"></input>
					<?php }?>
				</form>
			</td>
		</tr>

	<?php }} ?>
</table>

<?php $_template = new Smarty_Internal_Template("tpl/pagination.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>

<?php $_template = new Smarty_Internal_Template("tpl/footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>